In this example, the Multistate push button controls the mode of operation for the bag filler machine. The machine can operate manually or automatically, or it can be turned off.
Create a Multistate push button with the captions "Off" for State 0, "Manual" for State 1, and "Automatic" for State 2. The application monitors the tag you assign to the Value connection to control the operation mode. If the operator presses the button to change to the next mode, the Value connection value changes, and the machine switches modes.
If the operation mode can also be set by a supervisory system, the operator must be able to view the application’s local display to see which mode the machine is currently in. In this case, set the "Next state based on" option to Value. This causes the application to read the Value connection and update the button’s state before changing to the next state.
Assign the same tag to the Value connection and the Indicator connection. This ensures that the Multistate push button always displays the current operation mode.
Causes of run-time errors for the Multistate push button
About the Multistate push button's error state
Create Multistate push buttons
Configure the Multistate push button
Set up states for the Multistate push button
Set up controls for the Multistate push button